<?php
/**
 * Created by 抒己社区论坛.
 * User: wjx
 * Email:978976871@qq.com
 * Date: 2018/10/13
 * Time: 11:37
 */
namespace app\admin\validate;

use think\Validate;

class Admin extends Validate
{
    protected $rule = [
        'username'  =>  'require',
        'password' =>  'require',
    ];
    protected $message  =   [
        'username.require' => '请填写用户名',
        'password.require'     => '请填写密码',
    ];
    protected $scene = [
        'add'  =>  ['username','password'],
    ];
}